<h1><?php echo $congress['Congress']['name'] ?></h1>
<h2>Fim do período de Inscrição de Artigos em <?php echo date('d/m/Y', strtotime($congress['Congress']['deadline_submission'])) ?></h2>
<div class="author_view index">
    <h4>Artigos Submetidos para este Congresso</h4>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo __('Id') ?></th>
            <th><?php echo __('Artigo') ?></th>
<!--            <th><?php echo __('Arquivo') ?></th>-->
            <th><?php echo __('Ações') ?></th>
        </tr>
        <?php foreach ($congress['Article'] as $article): ?>
            <tr>
                <td><?php echo $article['id'] ?></td>
<!--                <td><?php echo $article['name'] ?></td>-->
                <td><?php echo $this->Html->image('pdf_icon.png'). ' ' . $this->Html->link(__($article['name'], true),$article['file_path']); ?></td>
                <td class="actions">
                <?php echo $html->link(__('Ver', true), array('controller' => 'articles', 'action' => 'view', $article['id'])); ?>
                <?php echo $html->link(__('Editar', true), array('controller' => 'articles', 'action' => 'edit', $article['id'])); ?>
                <?php echo $html->link(__('Excluir', true), array('controller' => 'articles', 'action' => 'delete', $article['id']), null, sprintf(__('Você está certo em excluir o artigo # %s?', true), $article['id'])); ?>
            </td>
        </tr>
        <?php endforeach ?>
            </table>
        </div>
        <div class="actions">
            <ul>
                <li><?php echo $html->link(__('Meus Congressos', true), array('controller' => 'users', 'action' => 'profile')); ?></li>
                <li><?php echo $html->link(__('Submeter Artigo', true), array('controller' => 'articles', 'action' => 'submit', $congress['Congress']['id'])); ?></li>
    </ul>
</div>